﻿using System;
using System.Collections.Generic;

namespace Ayatta.Contract.Domain
{
    /// <summary>
    /// 新手卡
    /// </summary>
    public class GameNoviceCard : BaseEntity<int>
    {
        /// <summary>
        /// 游戏Id
        /// </summary>
        public int GameId { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 区服Id
        /// </summary>
        public int ServerId { get; set; }

        /// <summary>
        /// 扩展信息
        /// </summary>
        public string Extra { get; set; }

        /// <summary>
        /// 状态 0为未使用 1为已使用 2为不可用
        /// </summary>
        public byte Status { get; set; }

        /// <summary>
        /// 最后一次编辑者
        /// </summary>
        public string ModifiedBy { get; set; }

        /// <summary>
        /// 最后一次编辑日期时间
        /// </summary>
        public DateTime? ModifiedOn { get; set; }

        public static IDictionary<byte, string> StatusDic
        {
            get
            {
                var dic = new Dictionary<byte, string>();
                dic.Add(0, "未使用");
                dic.Add(1, "已使用");
                dic.Add(2, "不可用");
                return dic;
            }
        }
    }
}